/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package x.test;

import java.util.Date;
import java.util.GregorianCalendar;

/**
 *
 * @author eros
 */
public class NovaClasse {


    Date today = null;
    int i = 10;
    Integer ii = 10;
    String sexo = "M.lukhgmvmgfvmnhvcmnvg";
    String[] minhaArray = new String[2];
   

//Contrutor
    public NovaClasse() {

    }

      public NovaClasse(String s) {

    }

       public NovaClasse(Date newdata) {
            this.today = newdata;
       }

//Metodo
    public String giveMeTime(){
        
        Date rightNow = new Date(new Long(1000000));
        GregorianCalendar gc = new GregorianCalendar();
        
        
        return  rightNow.toString();// new GregorianCalendar().getTime().toString();
    }

    public void setTime(){
        if(today == null){
            today = new GregorianCalendar().getTime();
        }
    }

    public static String giveNewTime(){
        return new GregorianCalendar().getTime().toString();
    }

    public void manipulaInteiros(){
        String substring = sexo.substring(1,12);
        Double d = null;
        Character c = new Character(sexo.charAt(12));
        System.out.println("Esse eh o inteiro: "+i);
        System.out.println("Esse eh o Integer: "+ii);
        d =  new Double(ii.toString());
        System.out.println("Esse eh o Double: "+d);
        System.out.println("Esse eh o Char: " +c);
        System.out.println("Esse eh a SubString: " +substring);

    }


    public static void main(String...  args){

//        NovaClasse nc = new NovaClasse();
//        nc.setTime();
//        System.out.println(nc.today);


     //   System.out.println(NovaClasse.giveNewTime());


//        NovaClasse n = new NovaClasse(new GregorianCalendar().getTime());
//        //System.out.println(n.);
//        n.manipulaInteiros();

        NovaClasse nc = new NovaClasse();
        System.out.println(nc.giveMeTime());

    }


}
